From a124755be68cc68c893648dd1ffc24bf122153d4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 12 Apr 2010 07:23:21 +0100 Subject: [PATCH] blktap2: a little fix to xen-hotplug-cleanup Signed-off-by: James (Song Wei) --- tools/hotplug/Linux/xen-hotplug-cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hotplug/Linux/xen-hotplug-cleanup b/tools/hotplug/Linux/xen-hotplug-cleanup index adaa9d6a23..2b5a2b4590 100644 --- a/tools/hotplug/Linux/xen-hotplug-cleanup +++ b/tools/hotplug/Linux/xen-hotplug-cleanup @@ -21,7 +21,7 @@ if [ "$vm" != "" ]; then # if the vm path does not exist and the device class is 'vbd' then we may have # a tap2 device - if [ $(xenstore-read "$vm_dev" 2>/dev/null) != "" ] \ + if [ "$(xenstore-read "$vm_dev" 2>/dev/null)" != "" ] \ && [ "${path_array[1]}" = "vbd" ]; then vm_dev="$vm/device/tap2/${path_array[3]}" fi -- 2.30.2